package common

import (
	"fmt"
	"unsafe"
)

const INT_SIZE int = int(unsafe.Sizeof(0))

func systemEdian() {
	var i int = 0x1
	bs := (*[INT_SIZE]byte)(unsafe.Pointer(&i))
	if bs[0] == 0 {
		fmt.Println("system edian is little endian")
	} else {
		fmt.Println("system edian is big endian")
	}
}
